package com.pashanhoo.datastructure.leetcode;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 胡庆安
 * @version V1.0
 * @Package com.pashanhoo.datastructure.leetcode
 * @date 2020/10/28 11:08
 * @Copyright © 2010-2020 爬山虎科技（扬州）股份有限公司
 */
public class Test1480 {
    public static void main(String[] args) {

    }

    public static int[] runningSum(int[] nums) {
        /*for(int i=1 ; i<nums.size(); ++i){
            nums[i] +=nums[i-1];
        }
        return nums;*/
        /*List<Integer> list = new ArrayList<Integer>();
        int length = nums.length;
        for(int i=0;i<length;i++){
            int temp = 0;
            for (int j=0;j<=i;j++){
                temp += nums[j];
            }
            list.add(temp);
        }
        for(int i=0;i<nums.length;i++){
            nums[i] = list.get(i);
        }
        return nums;*/
        return null;
    }
}
